//package com.rxyb.security.gate.filter;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//
///**
// * @author YJH
// * @version 1.0
// * @description
// * @date 2020/6/12  14:52
// */
//@Configuration
//public class WebMvcConfigFilter extends WebMvcConfigurationSupport {
//
//    private final AuthFilter myInterceptor;
//
//    public WebMvcConfigFilter(AuthFilter myInterceptor) {
//        this.myInterceptor = myInterceptor;
//    }
//
//    @Override
//    protected void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(myInterceptor)
//                .addPathPatterns("/user2");//拦截的访问路径，拦截所有
//        super.addInterceptors(registry);
//    }
//
//    @Override
//    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/**").addResourceLocations("classpath:/static/");
//    }
//
//
//}
